package cn.yuanqiao.archive.feedbackEvaluation.mapper;

import cn.yuanqiao.archive.appManager.domain.DataScopeBase;
import cn.yuanqiao.archive.feedbackEvaluation.domain.FeedbackEvaluation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 反馈评价Mapper接口
 *
 * @author xy
 * @date 2024-10-11
 */
public interface FeedbackEvaluationMapper
{
    /**
     * 查询反馈评价
     *
     * @param id 反馈评价主键
     * @return 反馈评价
     */
    public FeedbackEvaluation selectFeedbackEvaluationById(Long id);

    /**
     * 查询反馈评价列表
     *
     * @param feedbackEvaluation 反馈评价
     * @return 反馈评价集合
     */
    public List<FeedbackEvaluation> selectFeedbackEvaluationList(@Param("dataScopeBase") DataScopeBase dataScopeBase,@Param("feedbackEvaluation") FeedbackEvaluation feedbackEvaluation);

    /**
     * 新增反馈评价
     *
     * @param feedbackEvaluation 反馈评价
     * @return 结果
     */
    public int insertFeedbackEvaluation(FeedbackEvaluation feedbackEvaluation);

    /**
     * 修改反馈评价
     *
     * @param feedbackEvaluation 反馈评价
     * @return 结果
     */
    public int updateFeedbackEvaluation(FeedbackEvaluation feedbackEvaluation);

    /**
     * 删除反馈评价
     *
     * @param id 反馈评价主键
     * @return 结果
     */
    public int deleteFeedbackEvaluationById(Long id);

    /**
     * 批量删除反馈评价
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFeedbackEvaluationByIds(Long[] ids);

    public String selectArchiveBorrowByBorrowId(@Param("subTableName") String subTableName,@Param("id") Long id,@Param("param") String param);

    List<Map<String, Object>> selectYqDaByBorrowId(Long id);
}
